package net.hn.hnms.biz.safety.water.controller.feign;

import net.hn.hnms.biz.api.safety.monitor.model.BaseSensorCoordDto;
import net.hn.hnms.biz.safety.water.service.RiskMonitorWaterService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 远程调用水文监测水害防治
 */
//@ApiIgnore
@RestController
@RequestMapping("/remoteShfz")
@Validated
public class RemoteSwjcController {
    @Resource
    private RiskMonitorWaterService riskMonitorWaterService;

    /**
     * 获取水害防治BaseSensorTable表所有信息
     */
    @GetMapping("getBaseSensorTableAllList")
    public List<BaseSensorCoordDto> getBaseSensorTableAllList(String mineCode, String companyCode){
        List<BaseSensorCoordDto> baseSensorInfoNowPoList= riskMonitorWaterService.getBaseSensorTableAllList(mineCode);
        return baseSensorInfoNowPoList;
    }
}